package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 
 *
 * @author zhiyuan
 * @since 2023-03-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_school_xwtj")
@Schema(name = "EduSchoolXwtj", title = "", description = "实体类")
public class EduSchoolXwtj extends Model<EduSchoolXwtj> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "schoolXwtjId", title = "主键")
    @TableId(value = "school_xwtj_id", type = IdType.ASSIGN_ID)
    private String schoolXwtjId;

    @Schema(name = "fullName", title = "学生姓名")
    @TableField(value = "full_name")
    private String fullName;

    @Schema(name = "idcard", title = "学生身份证")
    @TableField(value = "idcard")
    private String idcard;

    @Schema(name = "birthYmd", title = "出生日期")
    @TableField(value = "birth_ymd")
    private String birthYmd;

    @Schema(name = "sex", title = "性别")
    @TableField(value = "sex")
    private String sex;

    @Schema(name = "address", title = "现居住地址")
    @TableField(value = "address")
    private String address;

    @Schema(name = "householdPlace", title = "户籍地")
    @TableField(value = "household_place")
    private String householdPlace;

    @Schema(name = "fatherIdcard", title = "父亲（监护人）证件号码")
    @TableField(value = "father_idcard")
    private String fatherIdcard;

    @Schema(name = "motherIdcard", title = "母亲身份证")
    @TableField(value = "mother_idcard")
    private String motherIdcard;

    @Schema(name = "schoolId", title = "学校")
    @TableField(value = "school_id")
    private String schoolId;

    @Schema(name = "schoolName", title = "学校名称")
    @TableField(value = "school_name")
    private String schoolName;

    @Schema(name = "schoolCategory", title = "学段")
    @TableField(value = "school_category")
    private String schoolCategory;

    @Schema(name = "schoolNature", title = "选择学校办别0.公办 1.民办")
    @TableField(value = "school_nature")
    private String schoolNature;

    @Schema(name = "year", title = "年份")
    @TableField(value = "year")
    private Integer year;

    @Schema(name = "configName", title = "招生类别")
    @TableField(value = "config_name")
    private String configName;

    @Schema(name = "houseId", title = "房产id")
    @TableField(value = "house_id")
    private String houseId;

    @Schema(name = "householdId", title = "户籍id")
    @TableField(value = "household_id")
    private String householdId;

    @Schema(name = "enrollStatus", title = "报名状态：0，待审核 1，待录取 2，已录取 3,业务不录取 4,系统不录取")
    @TableField(value = "enroll_status")
    private String enrollStatus;

    @Schema(name = "areaCode", title = "行政区划")
    @TableField(value = "area_code")
    private String areaCode;

    @Schema(name = "del", title = "逻辑删除标志")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Schema(name = "street", title = "所属街道")
    @TableField(value = "street")
    private String street;

    @Schema(name = "targetSchoolZhid", title = "按综合规则取目标学校id")
    @TableField(value = "target_school_zhid")
    private String targetSchoolZhid;

    @Schema(name = "targetSchoolFcid", title = "按房产规则取目标学校id")
    @TableField(value = "target_school_fcid")
    private String targetSchoolFcid;

    @Schema(name = "targetSchoolHjid", title = "按户籍规则取目标学校id")
    @TableField(value = "target_school_hjid")
    private String targetSchoolHjid;

    @Override
    public Serializable pkVal() {
        return this.schoolXwtjId;
    }
}
